package com.csun.cmny.provider.pojo;

import com.csun.cmny.core.mybatis.BaseEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import java.math.BigDecimal;

@Data
@Table(name = "cn_omc_old_leave")
public class OmcOldLeave extends BaseEntity {

    /**
     * 组织Id
     */
    @Column(name = "group_id")
    private Long groupId;

    /**
     * 版本号
     */
    private Integer version;

    /**
     * 老人id
     */
    @Column(name = "old_man_id")
    private Long oldManId;

    /*老人名字*/
    @Column(name = "old_man_name")
    private String oldManName;

    /*床位编号*/
    @Column(name = "bed_no")
    private String bedNo;

    /*房间编号*/
    @Column(name = "room_no")
    private String roomNo;

    /**
     * 请假日期
     */
    @Column(name = "leave_date")
    private String leaveDate;

    /**
     * 拟回院日期
     */
    @Column(name = "return_date")
    private String returnDate;

    /**
     * 实际回院日期
     */
    @Column(name = "real_date")
    private String realDate;

    /**
     * 请假原因 1 回家；2 和好友外出；3 院外就医； 4 院内就医
     */
    @Column(name = "`type`")
    private Integer type;

    /**
     * 请假说明
     */
    @Column(name = "`desc`")
    private String desc;

    /**
     * 退费天数--计算用
     */
    @Column(name = "real_refund_days")
    private Integer realRefundDays;

    /**
     * 退费天数 展示用
     */
    @Column(name = "refund_days")
    private Integer refundDays;

    /**
     * 请假退费周期数
     */
    @Column(name = "return_degree")
    private BigDecimal returnDegree;

    /**
     * 请假退费金额
     */
    @Column(name = "refund_fee")
    private BigDecimal refundFee;

    /**
     * 是否已经退费 0-未退费 1-已退费
     */
    @Column(name = "is_return")
    private BigDecimal isReturn;

    /**
     * 备注
     */
    private String remark;

    /**
     *
     */
    @Column(name = "nursing_group_id")
    private Long nursingGroupId;

}